/**
 * 广寒宫
 * 网址:www.guanghangong.xyz
 */
package com.moon.admin.flowable.entity;

import java.util.Date;

import org.flowable.ui.modeler.domain.Model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.moon.admin.framework.domain.Query;

import lombok.Getter;
import lombok.Setter;

/**
 * 流程模型信息
 * @author ninglong
 * @date 2020年2月11日
 * @version 1.0
 */
@Getter
@Setter
public class ActCnModelEntity extends Query{

	private String id;
	/** 流程名称 */
	private String name;

	/** 流程标识 */
	private String modelKey;

	/** 流程版本 */
	private Integer version;
	
	/** 修改时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date lastUpdated;

	public ActCnModelEntity() {
		super();
	}

	public ActCnModelEntity(Model model) {
		this.setId(model.getId());
		name = model.getName();
		modelKey = model.getKey();
		version = model.getVersion();
		lastUpdated = model.getLastUpdated();
	}
}
